<template>
    <div :class="{abb: isActive}">寂寞的季节</div>


    <input type="button" value="切换颜色" @click="btn()">
</template>
<script setup>
import { ref } from 'vue';
let isActive = ref(true)

function btn(){
isActive.value = !isActive.value
}
</script>
<style>

.abb{
    color: floralwhite;
}

</style>